from django.urls import path,re_path
from . import views

urlpatterns = [
    re_path(r"list/(?P<category_id>\d+)/(?P<page_num>\d+)/$",views.SKUListView.as_view()),
    re_path(r"hot/(?P<category_id>\d+)/$",views.HotSKUListView.as_view()),
    re_path(r"detail/(?P<sku_id>\d+)/$",views.SKUDetailView.as_view()),
    re_path(r"detail/visit/(?P<category_id>\d+)/$",views.CategoryVisitCountView.as_view()),
    re_path(r"browse_histories/$",views.SKUBrowserHistoryView.as_view()),
]